(0) Obligation:

Clauses:

reverse(L, LR) :- revacc(L, LR, []).
revacc([], L, L).
revacc(.(EL, T), R, A) :- revacc(T, R, .(EL, A)).

Query: reverse(g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

revaccA([], .(T460, T461), T460, T461).
revaccA(.(T472, T473), T477, T475, T476) :- revaccA(T473, T477, T472, .(T475, T476)).
reverseB([], []).
reverseB(.(T36, []), .(T36, [])).
reverseB(.(T70, .(T69, [])), .(T69, .(T70, []))).
reverseB(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))).
reverseB(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))).
reverseB(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))).
reverseB(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))).
reverseB(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))).
reverseB(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) :- revaccA(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))).

Query: reverseB(g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
reverseB_in: (b,f)
revaccA_in: (b,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

reverseB_in_ga([], []) → reverseB_out_ga([], [])
reverseB_in_ga(.(T36, []), .(T36, [])) → reverseB_out_ga(.(T36, []), .(T36, []))
reverseB_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverseB_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverseB_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverseB_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverseB_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverseB_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverseB_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverseB_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverseB_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverseB_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverseB_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverseB_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverseB_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revaccA_in_gagg([], .(T460, T461), T460, T461) → revaccA_out_gagg([], .(T460, T461), T460, T461)
revaccA_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revaccA_out_gagg(T473, T477, T472, .(T475, T476))) → revaccA_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverseB_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverseB_in_ga(x1, x2)  =  reverseB_in_ga(x1)
[]  =  []
reverseB_out_ga(x1, x2)  =  reverseB_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revaccA_in_gagg(x1, x2, x3, x4)  =  revaccA_in_gagg(x1, x3, x4)
revaccA_out_gagg(x1, x2, x3, x4)  =  revaccA_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

reverseB_in_ga([], []) → reverseB_out_ga([], [])
reverseB_in_ga(.(T36, []), .(T36, [])) → reverseB_out_ga(.(T36, []), .(T36, []))
reverseB_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverseB_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverseB_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverseB_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverseB_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverseB_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverseB_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverseB_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverseB_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverseB_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverseB_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverseB_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverseB_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revaccA_in_gagg([], .(T460, T461), T460, T461) → revaccA_out_gagg([], .(T460, T461), T460, T461)
revaccA_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revaccA_out_gagg(T473, T477, T472, .(T475, T476))) → revaccA_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverseB_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverseB_in_ga(x1, x2)  =  reverseB_in_ga(x1)
[]  =  []
reverseB_out_ga(x1, x2)  =  reverseB_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revaccA_in_gagg(x1, x2, x3, x4)  =  revaccA_in_gagg(x1, x3, x4)
revaccA_out_gagg(x1, x2, x3, x4)  =  revaccA_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

REVERSEB_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_GA(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
REVERSEB_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → REVACCA_IN_GAGG(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))
REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → U1_GAGG(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACCA_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverseB_in_ga([], []) → reverseB_out_ga([], [])
reverseB_in_ga(.(T36, []), .(T36, [])) → reverseB_out_ga(.(T36, []), .(T36, []))
reverseB_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverseB_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverseB_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverseB_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverseB_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverseB_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverseB_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverseB_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverseB_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverseB_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverseB_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverseB_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverseB_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revaccA_in_gagg([], .(T460, T461), T460, T461) → revaccA_out_gagg([], .(T460, T461), T460, T461)
revaccA_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revaccA_out_gagg(T473, T477, T472, .(T475, T476))) → revaccA_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverseB_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverseB_in_ga(x1, x2)  =  reverseB_in_ga(x1)
[]  =  []
reverseB_out_ga(x1, x2)  =  reverseB_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revaccA_in_gagg(x1, x2, x3, x4)  =  revaccA_in_gagg(x1, x3, x4)
revaccA_out_gagg(x1, x2, x3, x4)  =  revaccA_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVERSEB_IN_GA(x1, x2)  =  REVERSEB_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GA(x11)
REVACCA_IN_GAGG(x1, x2, x3, x4)  =  REVACCA_IN_GAGG(x1, x3, x4)
U1_GAGG(x1, x2, x3, x4, x5, x6)  =  U1_GAGG(x6)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVERSEB_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_GA(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
REVERSEB_IN_GA(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → REVACCA_IN_GAGG(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))
REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → U1_GAGG(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACCA_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverseB_in_ga([], []) → reverseB_out_ga([], [])
reverseB_in_ga(.(T36, []), .(T36, [])) → reverseB_out_ga(.(T36, []), .(T36, []))
reverseB_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverseB_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverseB_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverseB_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverseB_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverseB_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverseB_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverseB_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverseB_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverseB_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverseB_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverseB_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverseB_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revaccA_in_gagg([], .(T460, T461), T460, T461) → revaccA_out_gagg([], .(T460, T461), T460, T461)
revaccA_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revaccA_out_gagg(T473, T477, T472, .(T475, T476))) → revaccA_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverseB_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverseB_in_ga(x1, x2)  =  reverseB_in_ga(x1)
[]  =  []
reverseB_out_ga(x1, x2)  =  reverseB_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revaccA_in_gagg(x1, x2, x3, x4)  =  revaccA_in_gagg(x1, x3, x4)
revaccA_out_gagg(x1, x2, x3, x4)  =  revaccA_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVERSEB_IN_GA(x1, x2)  =  REVERSEB_IN_GA(x1)
U2_GA(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_GA(x11)
REVACCA_IN_GAGG(x1, x2, x3, x4)  =  REVACCA_IN_GAGG(x1, x3, x4)
U1_GAGG(x1, x2, x3, x4, x5, x6)  =  U1_GAGG(x6)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes.

(8) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACCA_IN_GAGG(T473, T477, T472, .(T475, T476))

The TRS R consists of the following rules:

reverseB_in_ga([], []) → reverseB_out_ga([], [])
reverseB_in_ga(.(T36, []), .(T36, [])) → reverseB_out_ga(.(T36, []), .(T36, []))
reverseB_in_ga(.(T70, .(T69, [])), .(T69, .(T70, []))) → reverseB_out_ga(.(T70, .(T69, [])), .(T69, .(T70, [])))
reverseB_in_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, [])))) → reverseB_out_ga(.(T114, .(T113, .(T112, []))), .(T112, .(T113, .(T114, []))))
reverseB_in_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, []))))) → reverseB_out_ga(.(T168, .(T167, .(T166, .(T165, [])))), .(T165, .(T166, .(T167, .(T168, [])))))
reverseB_in_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, [])))))) → reverseB_out_ga(.(T232, .(T231, .(T230, .(T229, .(T228, []))))), .(T228, .(T229, .(T230, .(T231, .(T232, []))))))
reverseB_in_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, []))))))) → reverseB_out_ga(.(T306, .(T305, .(T304, .(T303, .(T302, .(T301, [])))))), .(T301, .(T302, .(T303, .(T304, .(T305, .(T306, [])))))))
reverseB_in_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, [])))))))) → reverseB_out_ga(.(T390, .(T389, .(T388, .(T387, .(T386, .(T385, .(T384, []))))))), .(T384, .(T385, .(T386, .(T387, .(T388, .(T389, .(T390, []))))))))
reverseB_in_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421) → U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_in_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, [])))))))))
revaccA_in_gagg([], .(T460, T461), T460, T461) → revaccA_out_gagg([], .(T460, T461), T460, T461)
revaccA_in_gagg(.(T472, T473), T477, T475, T476) → U1_gagg(T472, T473, T477, T475, T476, revaccA_in_gagg(T473, T477, T472, .(T475, T476)))
U1_gagg(T472, T473, T477, T475, T476, revaccA_out_gagg(T473, T477, T472, .(T475, T476))) → revaccA_out_gagg(.(T472, T473), T477, T475, T476)
U2_ga(T420, T419, T418, T417, T416, T415, T414, T411, T412, T421, revaccA_out_gagg(T412, T421, T411, .(T414, .(T415, .(T416, .(T417, .(T418, .(T419, .(T420, []))))))))) → reverseB_out_ga(.(T420, .(T419, .(T418, .(T417, .(T416, .(T415, .(T414, .(T411, T412)))))))), T421)

The argument filtering Pi contains the following mapping:
reverseB_in_ga(x1, x2)  =  reverseB_in_ga(x1)
[]  =  []
reverseB_out_ga(x1, x2)  =  reverseB_out_ga(x2)
.(x1, x2)  =  .(x1, x2)
U2_ga(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11)  =  U2_ga(x11)
revaccA_in_gagg(x1, x2, x3, x4)  =  revaccA_in_gagg(x1, x3, x4)
revaccA_out_gagg(x1, x2, x3, x4)  =  revaccA_out_gagg(x2)
U1_gagg(x1, x2, x3, x4, x5, x6)  =  U1_gagg(x6)
REVACCA_IN_GAGG(x1, x2, x3, x4)  =  REVACCA_IN_GAGG(x1, x3, x4)

We have to consider all (P,R,Pi)-chains

(9) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(10) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

REVACCA_IN_GAGG(.(T472, T473), T477, T475, T476) → REVACCA_IN_GAGG(T473, T477, T472, .(T475, T476))

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
REVACCA_IN_GAGG(x1, x2, x3, x4)  =  REVACCA_IN_GAGG(x1, x3, x4)

We have to consider all (P,R,Pi)-chains

(11) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(12) Obligation:

Q DP problem:
The TRS P consists of the following rules:

REVACCA_IN_GAGG(.(T472, T473), T475, T476) → REVACCA_IN_GAGG(T473, T472, .(T475, T476))

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(13) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • REVACCA_IN_GAGG(.(T472, T473), T475, T476) → REVACCA_IN_GAGG(T473, T472, .(T475, T476))
    The graph contains the following edges 1 > 1, 1 > 2

(14) YES